package com.solution.dao;

import com.solution.exception.DAOException;
import com.solution.model.UserRole;

/**
 * Exposes the CRUD functionalities for the UserRole table.
 *
 */
public interface UserRoleDAO extends DAO<UserRole>{	

	/**
	 * Delete all user role entry for given user
	 * @param userID
	 * @return number of roles deleted
	 * @throws DAOException
	 */	
	public int deleteAllRoleForUser(Long userID) throws DAOException;
}
